﻿#include<iostream>
#include<string>

int fibnacci(int n) {
	//原理，每个数字都是前两个数字的相加,0,1,1,2,3,5,...f(1)=0,f(2)=1
	if (n == 1 || n == 2)
		return n - 1;
	//f(n)=f(n-1)+f(n-2)
	return fibnacci(n - 1) + fibnacci(n - 2);
}


int main() {

	std::cout << "Please input number" << std::endl;
	char ch;
	int num = 0;
	//std::cin.get
	//if (std::cin.get(ch) && ch != '\n' && isdigit(ch))
		//num = num * 10 + (ch - '0');
	//stc::cin>>
	std::cin >> num;

	//std::getline
	//std::string input;
	//std::getline(std::cin, input);
	std::cout << "result is:" << num << std::endl;

	std::cin.get();
}